package com.gerzel.stop.server;

import java.util.Date;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
import com.google.appengine.api.users.User;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class UserHabits {
	@PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Long id;
	
	@Persistent
    private User UserName;

    @Persistent
    private Date DrinkDate;

    @Persistent
    private Date SmokeDate;
    
    public UserHabits(User UserName, Date DrinkDate, Date SmokeDate) {
        this.UserName = UserName;
        this.DrinkDate = DrinkDate;
        this.SmokeDate = SmokeDate;
    }

    public Long getId() {
        return id;
    }
    
    public User getUserName() {
        return UserName;
    }

    public Date getDrinkDate() {
        return DrinkDate;
    }

    public Date getSmokeDate() {
        return SmokeDate;
    }

    public void setUserName(User UserName) {
        this.UserName = UserName;
    }

    public void setDrinkDate(Date DrinkDate) {
        this.DrinkDate = DrinkDate;
    }

    public void setSmokeDate(Date SmokeDate) {
        this.SmokeDate = SmokeDate;
    }
}
